<template>
	<view>
		<view class="item fcs">
			<view class="l">
				素材标题
			</view>
			<view class="r">
				<u-button shape="circle" :custom-style="submitStyle">查看</u-button>
			</view>
		</view>
		<view class="add" @click="toPath">
			<image class="img" src="@/static/img/add-icon.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				submitStyle: {
					color: '#FFF',
					background: '#F3060D',
					width: '167rpx',
					height: '64rpx'
				},
			};
		},
		methods: {
			toPath() {
				uni.navigateTo({
					url: '/pages/set/material/edit'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.add {
		display: flex;
		justify-content: flex-end;

		.img {
			width: 60rpx;
		}
	}

	.fcs {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.item {
		height: 130rpx;
		width: 100%;
		padding: 42rpx 27rpx;
		box-sizing: border-box;
		border-radius: 10rpx;
		background-color: #FFF;
		margin-bottom: 20rpx;
	}
</style>
<style>
	page {
		background-color: #F4F5F7;
		padding: 20rpx;
		box-sizing: border-box;
	}
</style>